import request from '@/utils/request'

// 查询房屋朝向列表
export function listOrientation(query) {
  return request({
    url: '/shezhi/orientation/list',
    method: 'get',
    params: query
  })
}

// 查询房屋朝向详细
export function getOrientation(id) {
  return request({
    url: '/shezhi/orientation/' + id,
    method: 'get'
  })
}

// 新增房屋朝向
export function addOrientation(data) {
  return request({
    url: '/shezhi/orientation',
    method: 'post',
    data: data
  })
}

// 修改房屋朝向
export function updateOrientation(data) {
  return request({
    url: '/shezhi/orientation',
    method: 'put',
    data: data
  })
}

// 删除房屋朝向
export function delOrientation(id) {
  return request({
    url: '/shezhi/orientation/' + id,
    method: 'delete'
  })
}
